<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试hover文字变大</title>
    <style>
        *{
            margin: 1px;
            padding: 0;
        }

        .box{
            width: 60px;
            height: 40px;
            background: #cccccc;
            color: #211324;
            font-size: 14px;
            line-height: 40px;
            text-align: center;
            box-sizing: border-box;
        }

        .box:hover{
            font-size: 22px;
            color: #211324;
            background: #fff;
            line-height: 36px;
            border: 3px solid #ccc;
        }
    </style>
</head>
<body>
    <div class="box">内容</div>
</body>
</html>